package com.woniu.defecttracking.service;

import com.woniu.defecttracking.dto.RoleDto;
import com.woniu.defecttracking.dto.RolePageDto;
import com.woniu.defecttracking.dto.RuleDto;
import com.woniu.defecttracking.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.defecttracking.exception.RoleException;
import com.woniu.defecttracking.exception.RuleException;
import com.woniu.defecttracking.param.*;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tiangle
 * @since 2021-12-31
 */
public interface RoleService extends IService<Role> {

    List<RoleDto> findAllRole();

    RolePageDto findRole(FindRoleParam findRoleParam);

    Boolean removeRole(List<Integer> ids);

    Boolean changeRole(Integer id) throws RoleException;

    RoleDto saveRole(AddRoleParam addRoleParam) throws RoleException;

    RoleDto updateRole(UpdateRoleParam updateRoleParam) throws RoleException;
}
